﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Drawing.Drawing2D;
using System.Drawing;

namespace Mirkuz.Mapping
{
    public class MapTrack
    {
        private List<MapPoint> _list = new List<MapPoint>();
        public MapPoint StartPoint;
        public MapPoint FinishPoint;
        public MapPoint LastPoint;
        public List<MapPoint> TrackPoints
        {
            get { return _list; }
        }

        public Pen Pen = new Pen(Color.Red, 2);

        public void AddStartPoint(MapPoint start)
        {
            StartPoint = start;
            _list.Add(start);
            LastPoint = StartPoint;
        }

        public void AddFinishPoint(MapPoint finish)
        {
            FinishPoint = finish;
            _list.Add(finish);
            LastPoint = FinishPoint;
        }

        public void AddPoint(MapPoint p)
        {
            _list.Add(p);
            LastPoint = p;
        }
    }
}
